# pythonProject5/schemas/transcribe.py
from pydantic import BaseModel
from typing import Optional


class TranscribeResponse(BaseModel):
    success: bool
    source_text: str
    translated_text: str
    detected_language: str
    record_id: int
    duration: int


class RecordItem(BaseModel):
    id: int
    source_text: str
    target_text: str
    source_lang: str
    target_lang: str
    duration: int
    created_at: str
    audio_path: str


class StatsResponse(BaseModel):
    total_translations: int
    last_7_days: int
    last_activity: Optional[str]